/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.cesupa.cabcc.sudi;

import br.cesupa.cabcc.dao.ReivindicacaoDAO;
import br.cesupa.cabcc.entity.Reivindicacao;
import br.cesupa.cabcc.entity.Usuario;
import java.util.List;

/**
 *
 * @author yuri
 */
public class ReivindicacaoSUDI extends GenericSUDI<Reivindicacao> implements ReivindicacaoDAO {

    public Reivindicacao getById(Integer id) {
        return (Reivindicacao) super.executeNamedQueryObject("Reivindicacao.findById", "id", id);
    }

    public List<Reivindicacao> getByUsuario(Usuario usuario) {
        return super.executeNamedQueryList("Reivindicacao.findByUsuario", "usuario", usuario);
    }

}
